/* Switch背景块 start */
._myswitch {
  position: relative;
  display: inline-block;
  background-color: rgba(0,0,0,.25);
  min-width: 44px;
  height: 22px;
  line-height: 22px;
  border: none;
  border-radius: 4px;
  vertical-align: middle;
  cursor: pointer;
  transition: .2s;
}

._myswitch._small {
  min-width: 26px;
  height: 16px;
  line-height: 16px;
}

._myswitch._disabled {
  opacity: .4;
  cursor: no-drop;
}

._myswitch:focus {
  outline: none;
  box-shadow: 0 0 0 2px rgba(0,0,0,.05);
}

._myswitch._checked {
  background-color: #fa541c;
}

._myswitch._checked:focus {
  outline: none;
  box-shadow: 0 0 0 2px rgba(255, 216, 191, .8);
}
/* Switch背景块 end */

/* 滑块 start */
._block {
  position: absolute;
  top: 2px;
  left: 2px;
  display: inline-block;
  background-color: #fff;
  width: 18px;
  height: calc(100% - 4px);
  border-radius: 2px;
  transition: 0.1s;
}

._mousedown ._block {
  transform: scale(0.9);
}

._myswitch._checked ._block {
  left: calc(100% - 20px);
}

._myswitch._small ._block {
  width: 12px;
  height: calc(100% - 4px);
}

._myswitch._small._checked ._block {
  left: calc(100% - 14px);
}
/* 滑块 end */

/* 自定义文字内容 start */
._text {
  margin: 0 0 0 18px;
  display: block;
  color: #fff;
  font-size: 12px;
  transition: 0.1s;
}

._myswitch._checked ._text {
  margin: 0 18px 0 0;
}
/* 自定义文字内容 end */

/* loading start */
._loading::after {
  content: '';
  position: absolute;
  left: 2px;
  top: calc(50% - 5px);
  height: 10px;
  width: 10px;
  border-radius: 6px;
  background-color: rgba(0,0,0,.25);
  border: 1px solid #fff;
	animation: loadingBlock 1.5s infinite;
}
._loading._checked::after {
  background-color: #fa541c;
}

@keyframes loadingBlock
	{
  0% {
    left: 4px;
  }
  /* 25% {
    left: calc(50% - 6px);
  }
	50% {
    left: calc(100% - 14px);
  }
  75% {
    left: calc(50% - 6px);
  }
	100% {
    left: 4px;
  } */
	50% {
    left: calc(100% - 14px);
  }
	100% {
    left: 4px;
  }
}
/* loading end */